﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problem5
{
	// What is the smallest number divisible by each of the numbers 1 to 20?
	class Problem0005
	{
		static void Main(string[] args)
		{
			bool notFound = true;
			int number = 20;

			while (notFound)
			{
				bool evenlyDivisible = true;
				for (int i = 1; i <= 20; i++)
				{
					if (number % i != 0)
						evenlyDivisible = false;
				}
				if (!evenlyDivisible)
					number++;
				else
					notFound = false;
			}

			Console.WriteLine(number);
			Console.Read();
		}
	}
}
